﻿namespace RBAC.MaHaiBo.API.DTOS
{
    public class ApiResult<T>
    {
        /// <summary>
        /// 返回状态码，0正常，还可以根据业务定义其他返回标识
        /// </summary>
        public int Code { get; set; } = 1;
        /// <summary>
        /// 返回信息
        /// </summary>
        public string? Message { get; set; } = string.Empty;
        /// <summary>
        /// 根据想要返回对应的数据结果
        /// </summary>
        public T Data { get; set; }
    }
}
